@(seqs: Seq[(String, String,Html)], active: String)

<ul class="nav nav-tabs" role="tablist">
    @for((name, title,html) <- seqs) {
        <li class="nav-item" role="presentation">
            <a class="nav-link @if(active == name) {active}" id="@name-tab" data-toggle="tab" href="#@name" role="tab" aria-controls="@name" aria-selected="true">@title</a>
        </li>
    }
</ul>

<div class="tab-content">
    @for((name, title,html) <- seqs) {
        <div class="tab-pane fade  @if(active == name) {show active} " id="@name" role="tabpanel" aria-labelledby="@name-tab">
        @html
        </div>
    }
</div>